<template>
	<view class="columnbox wdh-100 content">
		<view class="one-box columnbox wdh-100" v-for="(item,index) in list" :key='index'>
			<view class="rowbox wdh-100 spb color-box">
				<view class="rowbox">{{item.stationName}}
					<view style="margin-left: 10rpx;"><u-icon name="arrow-right" size="28rpx" color="#fff"></u-icon>
					</view>
				</view>
				<!-- <view></view> -->
			</view>
			<view class="income-box rowbox jus">总营业额：¥ {{item.allSales}}</view>
			<view class="rowbox spb data-box">
				<view class="columnbox one-data">
					<view class="data-price">¥ {{item.todaySales}}</view>
					<view class="data-desc">今日营业额</view>
				</view>
				<view class="columnbox one-data">
					<view class="data-price">{{item.todayWashOrder}}</view>
					<view class="data-desc">今日订单数</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			};
		},
		onLoad() {
			this.getList()
		},
		methods: {
			getList() {
				this.$req.get('/xcx/manager/count/station').then(res => {
					this.list = res.data.data
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		min-height: 100vh;
		justify-content: flex-start;
		background: #F7F7F7;
		padding: 20rpx;
	}

	.one-box {
		border-radius: 20rpx;
		margin-bottom: 20rpx;
		overflow: hidden;
		background: #fff;
	}

	.color-box {
		background: #005d81;
		padding: 20rpx;
		color: #fff;
		font-size: 32rpx;
		font-weight: bold;
	}

	.income-box {
		background: #ccdfe6;
		width: calc(100% - 40rpx);
		margin-top: 20rpx;
		border-radius: 20rpx;
		font-size: 28rpx;
		padding: 20rpx;
		color: #000;
	}

	.data-box {
		margin: 20rpx 0;
		width: calc(100% - 40rpx);
	}

	.one-data {
		border-radius: 10rpx;
		background: #f7f7f7;
		width: 20rpx;
		height: 140rpx;
		width: 325rpx;
	}

	.data-price {
		color: #005d81;
		font-size: 32rpx;
		font-weight: bold;
	}

	.data-desc {
		color: #6a6a6a;
		font-size: 24rpx;
		margin-top: 10rpx;
	}
</style>